package com.qihang.core.dao;

import com.qihang.common.PagerModel;
import com.qihang.core.domain.ArticleEntity;

public interface ArticleDao {

	
	
	
	/**
	 * 判断文章是否存在
	 * @param user
	 * @return
	 */
	public boolean isExistArticle(ArticleEntity paramArticle);

	/**
	 * 删除文章
	 * 
	 * @param paramUser
	 * @return
	 */
	public abstract void delArticle(ArticleEntity paramArticle);

	/**
	 * 更新文章
	 * 
	 * @param paramUser
	 * @return
	 */
	public abstract void updateArticle(ArticleEntity paramArticle);

	/**
	 * 根据条件获取文章
	 * 
	 * @return
	 */
	public abstract PagerModel getArticleList(ArticleEntity paramArticle);

	/**
	 * 获取一个文章
	 * 
	 * @param paramUser
	 * @return
	 */
	public abstract ArticleEntity getArticle(ArticleEntity paramArticle);

	/**
	 * 添加文章
	 * 
	 * @param user
	 * @return
	 */
	public boolean addArticle(ArticleEntity paramArticle);
	
}
